import axios from "./myaxios";

let chatRequest={
    getAllTalk(id,myId){
        return axios.get("/chatapi/chat/all?id1="+id+"&id2="+myId).then(resp=>resp.data)
    },
    insertOne(msjObj){
        return axios.post("/chatapi/chat/send",msjObj).then(resp=>resp.data)
    },
    getNewestTalkFromRedis(myId){
        return axios.get("/chatapi/chat/receive/"+myId).then(resp=>resp.data)
    },
    test(){

    }
}
export default chatRequest